<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>欢迎光临 Music Store</title>
	<link type="text/css" rel="Stylesheet" href="${pageContext.request.contextPath }/style/front.css"/>
 	<script src="${pageContext.request.contextPath}/script/jquery-1.10.2.js"></script>
 	<script>
 		$(function(){
 			setInterval(load, 1000);
 		});
 		function load(){
 			var time = $(".sp").text();
 			time = parseInt(time);
 			time --;
 			if(time<1)
 				location.href="index";
 			else
 				$(".sp").text(time);
 		}
 	</script>
 	<style>
 		#main p{margin:10px 30px;}
 		#main .bold{font-weight: bold;}
 		#main .sp{color:red;padding: 0px 5px;font-size: 15px;}
 	</style>
  </head>
  <body>
    <div id="wrapper">
    	<s:action name="header" executeResult="true" namespace="/"></s:action>
    	<div id="content">
    		<s:action name="sidebar" executeResult="true" namespace="/"></s:action>
    		<div id="main">
    			<h3 id="main-title">系统信息</h3>
    			<p class="bold">订单已成功提交，<span class="sp">5</span>秒后自动跳转</p>
    			<p><a href="index">或点击此处立即跳转</a></p>
    		</div>
    		<div class="clearBoth"></div>
    	</div>
    	<%@ include file="../shared/footer.jsp" %>
    </div>
  </body>
</html>
